using UnityEngine;

public class ScreenSizeUiScaler : MonoBehaviour
{
	private static float _screenDimension;

	[SerializeField]
	private Transform _transformToScale;

	private static float ScreenDimension
	{
		get
		{
			if (_screenDimension < 1f)
			{
				_screenDimension = (float)Screen.height / Screen.dpi;
				UnityEngine.Debug.Log("Screen Dimension: " + _screenDimension);
			}
			return _screenDimension;
		}
	}

	private void Start()
	{
		//float num = 3f;
		//float d = 1f + Mathf.Max(0f, ScreenDimension - num) / (num - ScreenDimension) * (1f - num / ScreenDimension);
		//_transformToScale.localScale = Vector3.one * d;
	}
}
